package com.duan.learn.collection;

import lombok.Data;

@Data
public class TreeNode<K,V> {

    TreeNode<K,V> parent;  // red-black tree links
    TreeNode<K,V> left;
    TreeNode<K,V> right;
    TreeNode<K,V> prev;    // needed to unlink next upon deletion
    boolean red;
}
